.page-container{
  height: calc(100% - 15px)
}
.add-template-dialog{
  .el-tabs__new-tab{
    color: #1762BD;
    border: 1px solid #1762BD
  }
}
.page-inner-container{
  background-color: #fff;margin: 15px;padding: 20px 25px;height: 100%;
}
.control-container{
  display: flex;
  height: 100%;
  width: 100%;
  &.block{
    display: block;
  }
  .left-panel{
    flex: 0 0 220px;
    background: #fff;
    box-shadow: 1px 1px 1px rgba(0,0,0,0.3);
    border-radius: 5px;
    padding: 20px 15px;
  }
  .right-panel{
    margin-left: 15px;
    margin-right: 15px;
    flex: 1;
    background: #fff;
    box-shadow: 1px 1px 1px rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 20px 25px;
    &.overflow-x{
      overflow-x: auto;
    }
    .table-tools-bar{
      &.flex{
        display: flex;
        justify-content: space-between;
      }
      padding: 0px 20px 10px 20px;
      .table-btn{
        background-color: #1762BD;
        color: #fff;
        height: 30px;
        width: 90px;
        padding: 0px;
        &.warning{
          background-color: #e6a23c;
          border-color: #e6a23c;
          &:hover{
            background: #ebb563;
          }
        }
        &:disabled{
          background: #ddd;
          border: 0px;
          &:hover{
            background: #ddd;
          }
        }
        &.w-60{
          width: 60px;
        }
        &:hover{
          background-color: #428ae2;
        }
      }
      .table-icon-btn{
        background:rgba(201,201,201,0.15);
        border: 1px solid #C9C9C9;
        height: 30px;
        width: 67px;
        padding: 0px;
        color: #333;
        &:hover{
          background:rgba(201,201,201,0.45);
        }
        i{
          color: #8E8E8E;
          font-size: 14px;
        }
      }
      .table-btns-left{

      }
      .table-btns-right{

      }
    }
  }

}
.search-panel{
  display: flex;
  align-items: center;
}
.table-tools-bar{
  text-align: right;
}
.table-panel{
  padding-top: 10px;
}
.pagination-container{
  margin-top: 20px;
  text-align: center;
}
.el-submenu__title{
  font-weight: bold;
  font-size: 16px;
}

.grid-data-table{
  &.el-table{
    td, th{
      padding: 4px 0px !important;
    }
    .el-table__header{
      tr,th{
        background: #f4f7fe;
        color: #333;
        font-size: 13px;
      }
    }
  }
}
td.color-green{
  color: green;
}
td.color-blue{
  color:blue;
}
.w-100{
  width: 100% !important;
}
.el-select.w-100{
  // position: relative;
  // top: -1px;
}
.dialog-form{
  .el-form-item--mini{
    .el-form-item__content{
      min-height: 33px;
    }
  }
}
// 查询表单
.query-more-form{
  .el-form-item--mini{
    .el-form-item__content{
      height: 32px;
    }
  }
  .btn-col{
    text-align: right;
  }
  .el-input--mini {
  }
  .el-input__inner{
    height: 32px;
    border-radius: 3px;
    border: 1px solid #DBDBDB;
  }
  .el-form-item__label{
    color: #333;
    font-size: 14px;
    font-weight: normal;
    line-height: 32px;
  }
  .search-btn{
    background-color: #1762BD;
    height: 32px;
    width: 70px;
    padding: 0px;
    &:hover{
      background-color: #428ae2;
    }
  }
  .reset-btn{
    background:rgba(201,201,201,0.15);
    border: 1px solid #C9C9C9;
    height: 32px;
    width: 70px;
    padding: 0px;
    color: #333;
    &:hover{
      background:rgba(201,201,201,0.45);
      color: #333;
    }
  }
}
.fixed-container{
  display: flex;
  width: 100%;
  .left-tree-panel{
    flex: 0 0 260px;
    .tree-search-input{
      height: 50px;
      line-height: 50px;
      padding: 0px 10px;
      background-color: #F0F0F0;
      border-bottom: 1px solid #C9C9C9;
    }
  }
  .right-content-panel{
    width: calc(100% - 260px);
    border-left: 1px solid #eee;
    // padding-left: 10px;
  }

}
// 禁用样式
.el-input.is-disabled{
  .el-input__inner{
    background-color: #f1f1f1;
    color: #666;
  }
}
.el-textarea.is-disabled{
  .el-textarea__inner{
    background-color: #f1f1f1;
    color: #666;
  }
}

//滚动条的宽度
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
//滚动条的滑块
::-webkit-scrollbar-thumb {
  background-color: #64697B;
  border-radius: 3px;
}
.shallow::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
.shallow::-webkit-scrollbar-thumb{
  //滚动条的滑块
  background-color: #cfcfcf;
  border-radius: 3px;
}

.el-dialog{
  .el-dialog__header{
    background: rgb(96, 177, 235);
    padding: 10px 20px;
    .el-dialog__title{
      color: rgb(248, 248, 248);
      font-size: 16px;
    }
    .el-dialog__headerbtn{
      .el-dialog__close{
        color:rgb(228, 242, 252)
      }
    }
  }
  .el-dialog__body{
    padding: 15px 20px;
  }
  .el-dialog__headerbtn{
    top: 10px;
  }
  .el-dialog__footer{
    text-align: center;
  }
  .sure-btn{
    background-color: #46b1f8;
    height: 32px;
    width: 60px;
    padding: 0px;
    &.auto{
      width: auto;
      padding: 0px 5px;
    }
    &:hover{
      background-color: #6ebbf0;
    }
  }
  .cancel-btn{
    background:rgba(235,235,235,0.15);
    border: 1px solid #C9C9C9;
    height: 32px;
    width: 60px;
    padding: 0px;
    &:hover{
      color: #333;
      background:rgba(235,235,235,0.45);
    }
  }
}

.table-from-container{
  font-family: SimSun;
  padding: 10px;
  height: 100%;
  overflow: auto;
  table,td,th{
    border: 1px solid #000;
  }
  td{
    padding: 5px 10px;
  }
  .form-table{
    border-collapse:collapse;
    width: 100%;
    .el-checkbox__label{
      color: #000;
    }
    .el-textarea{
      padding: 0px;
      .el-textarea__inner{
        border: 0px;
        border-bottom: 1px solid #fff;
        font-size: 16px;
      }
      .el-textarea__inner:focus{
        border-radius: 0px;
        border: 0px;
        color: #333;
        border-bottom: 1px solid #000;
      }
    }

  }
  .table-ipt,.table-label{
    display: inline-block;
  }
  .table-ipt{
    border: 0px;
    width: 80px;
    border-bottom: 1px solid #fff;
    color: #333;
    &:focus{
      border-color: #333;
      outline: none;
    }
  }
  td .table-ipt{
    width: 100%;
  }
  .border-b{
    border-bottom: 1px solid #000;
  }
  .display-inline{
    display: inline;
  }
  .margin0{
    margin: 0px;
  }
  .m-t-5{
    margin-top: 5px;
  }
  .h-20{
    height: 20px;
    line-height: 20px;
  }
  .rel-t-5{
    position: relative;
    top: -5px;
  }
  .rel-t-25{
    position: relative;
    top: -25px;
  }
  .w-50{
    width: 50px !important;
  }
  .w-75{
    width: 75px !important;
  }
  .w-100{
    width: 100px !important;
  }
  .w-150{
    width: 150px !important;
  }
  .w-220{
    width: 220px !important;
  }
}

// 文件上传
.file-uploader{
  width: 100%;
  height: auto;
}
// 上传
.avatar-uploader{
  width: 120px;
  height: 120px;
  text-align: center;
  img{
    max-width: 100%;
    max-height: 100%;
  }
}
.avatar-uploader .el-upload {
  border: 1px dashed #d9d9d9;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.avatar-uploader .el-upload:hover {
  border-color: #409EFF;
}
.avatar-uploader-icon {
  font-size: 22px;
  color: #8c939d;
  width: 120px;
  height: 120px;
  line-height: 120px;
  text-align: center;
}
//企业颜色
/*.enterprise-normal{
  color: #519142;
  width: 26;
  height:30 ;
}*/
//正常
.outlet-normal{
  color: #32b16c;
  width: 26;
  height:30 ;
}
//故障
.outlet-fault{
  color: #e60012;
  width: 26;
  height:30 ;
}
//超标
.outlet-over-standard{
  color: #e2d503;
  width: 26;
  height:30 ;
}
//离线
.outlet-off-line{
  color: #aaaaaa;
  width: 26;
  height:30 ;
}
//停运
.outlet-decommissioning{
  color: #000000;
  width: 26;
  height:30 ;
}
//恒值
.outlet-constant-value{
  color: #1e94d4;
  width: 26;
  height:30 ;
}

.form-treeselect.vue-treeselect{
  height: 28px;
  .vue-treeselect__control{
    height: 28px;
    line-height: 28px;
  }
  .vue-treeselect__single-value{
    line-height: 28px;
  }
  .vue-treeselect__placeholder{
    line-height: 28px;
  }
}

//正常
.outlet-normal-color{
  color: #32b16c;
}
//超标
.outlet-over-standard-color{
  color: #e2d503;
}
//恒值
.outlet-constant-value-color{
  color: #1e94d4;
}
//故障
.outlet-fault-color{
  color: #e60012;
}


.anchorBL{
  display:none;
}


// 自定义表单内容
.custome-table{
  width: 95%;
  margin: 0 auto;
  .table-title{
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
  }
  .table-row{
    display: flex;
    margin-bottom: 5px;
    margin-top: 5px;
  }
  .table-row-item{
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    padding: 2px 0px;
    .item-label{
      flex: 0 0 120px;
      text-align: right;
      line-height: 20px;
      &::after{
        content: '：'
      }
    }
    .item-value{
      flex: 1;
      .el-select{
        width: 100%;
      }
    }
  }
  .custom-table{
    table{
      margin: 10px 0;
      width: 100%;
      border-collapse: collapse;
      .el-input__inner{
        padding: 0px 2px;
      }
      .el-date-editor{
        .el-input__inner{
          padding-left: 30px;
        }
      }
      .date{
        .el-date-editor.el-input{
          width: 110px;
        }
        .el-date-editor{
          .el-input__inner{
            padding-left: 20px;
          }
          .el-input__icon{
            width: 15px;
          }  
        }
        &.w100{
          .el-date-editor.el-input{
            width: 100%;
          }
        }
      }
      .el-textarea__inner{
        padding:2px;
      }
      .hide{
        visibility: hidden;
        th,td{height: 10px;}
      }
      th,td{
        border:1px solid #999;
        height: 30px;line-height: 30px;
        padding: 0px 2px;
        &.center{
          text-align: center;
        }
        &.no-border{
          border: 0px;
        }
      }
      &.w18{
        th,td{width: calc(100% / 18);}
      }
      &.w20{
        th,td{width: calc(100% / 20);}
      }
      &.w21{
        th,td{width: calc(100% / 21);}
      }
      &.w24{
        th,td{ width: calc(100% / 24);}
      }
    }
  }
  .upload-image-panel{
    padding: 5px;
    display: flex;
    align-items: center;
    flex-direction: row;
    .uploader-icon {
      font-size: 14px;
      color: #8c939d;
      width: 48px;
      height: 48px;
      line-height: 48px;
      text-align: center;
      border: 1px dashed #8c939d;
      border-radius: 5px;
      margin-right: 5px;
      &:hover{
        border: 1px dashed #1762BD;
        color: #1762BD;
      }
    }
    .preview-image {
      width: 48px;
      height: 48px;
      margin-right: 5px;
      position: relative;
      border: 1px dashed #8c939d;
      box-sizing: content-box;
      display: flex;
      align-items: center;
      justify-content: center;
      .image-modal{
        display: none;
        i{
         color: #fff;
         font-size: 12px;
        }
      }
      &:hover{
        .image-modal{
          display: flex;
          justify-content: space-around;
          align-items: center;
          position: absolute;
          width: 48px;
          height: 48px;
          background-color: rgba(0,0,0,.7);
          top: 0;
          left: 0;
          
        }
      }
      img{
        width: 48px;
        height: auto;
      }
    }
  }
  .upload-video-panel{
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 5px;
    .upload-btn{
      height: 25px;
      padding: 0px 10px;
    }
    .el-upload__tip{
      margin-top: 0px;
    }
  }
}

.text-center{
  text-align: center;
}
.cursor-pointer{
  cursor: pointer;
}
.left-panel{
  &.shrink-panel{
    transition: flex 0.3s;
    padding-top: 10px;
    flex: 0 0 335px;
    overflow: hidden;
    &.narrow{
      flex: 0 0 10px;
      overflow: hidden;
    }
  }
}
.shrink-btn-panel{
  text-align: left;margin-bottom: 5px;
  i{
    cursor: pointer;color: #409eff;font-weight: bold;
  }
}
.choose-outlet-panel{
  text-align: center;
  font-size: 16px;
  color: #777; 
}
.search-radio-group{
  .el-radio{
    margin-right: 15px;
  }
}
.el-form-item--mini.el-form-item, 
.el-form-item--small.el-form-item{
  margin-bottom: 10px;
}